package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Event_DTs", description = "停机表")
@TableName(value = "Event_DTs")
public class EventDts extends FBaseEntity implements Serializable {


    
    @ApiModelProperty("单据Id")
    @TableField(value = "pBillID")
    private Long pBillID;
    
    @ApiModelProperty("发起日期")
    @TableField(value = "signDate")
    private Date signDate;
    
    @ApiModelProperty("班制ID")
    @TableField(value = "shiftId")
    private Long shiftId;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("班制名称")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "shiftNum")
    private String shiftNum;
    
    @NotNull(message="[生产资源ID]不能为空")
    @ApiModelProperty("生产资源ID")
    @TableField(value = "resourceId")
    private Long resourceId;
    
    @ApiModelProperty("工序ID")
    @TableField(value = "processId")
    private Long processId;
    
    @ApiModelProperty("工序活动ID")
    @TableField(value = "actionId")
    private Long actionId;
    
    @NotNull(message="[停机开始时间]不能为空")
    @ApiModelProperty("停机开始时间")
    @TableField(value = "dTBeginTime")
    private Date dTBeginTime;
    
    @ApiModelProperty("停机结束时间")
    @TableField(value = "dTEndTime")
    private Date dTEndTime;
    
    @NotNull(message="[事件ID]不能为空")
    @ApiModelProperty("事件ID")
    @TableField(value = "eventId")
    private Long eventId;
    
    @ApiModelProperty("停机ID")
    @TableField(value = "dTId")
    private Long dTId;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("备注")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "remark")
    private String remark;
    
    @NotNull(message="[发起人]不能为空")
    @ApiModelProperty("发起人")
    @TableField(value = "userId")
    private Long userId;
    
    @ApiModelProperty("")
    @TableField(value = "updateTime")
    private Date updateTime;
    
    @ApiModelProperty("")
    @TableField(value = "checkerId")
    private Long checkerId;
    
    @ApiModelProperty("")
    @TableField(value = "checkTime")
    private Date checkTime;






}

